package cn.jetpiece.cloud.joss.api.basic.model.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 * 创建存储类型记录
 * </p>
 *
 * @author XuJZ
 * @since 2020-09-05
 */
@Data
@ApiModel
public class CreateStorageClassParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 服务商UUID
     */
    @NotBlank(message = "服务商不能为空")
    @ApiModelProperty(value = "服务商UUID", required = true)
    private String providerId;

    /**
     * 存储类型名称
     */
    @NotBlank(message = "存储类型名称不能为空")
    @ApiModelProperty(value = "存储类型名称", required = true)
    private String storageClassName;

    /**
     * 存储类型值
     */
    @NotBlank(message = "存储类型值不能为空")
    @ApiModelProperty(value = "存储类型值", required = true)
    private String storageClassValue;

    /**
     * 启用(1:是,0:否)
     */
    @ApiModelProperty(value = "启用(1:是,0:否)")
    private Integer isEnable;
}
